package com.herui.ota.enums;

import com.mlnx.common.enums.BaseCodeEnum;
import io.swagger.annotations.ApiModel;

/**
 * Created by amanda.shan on 2020/12/29.
 */
@ApiModel("设备类型")
public enum UpdateStateEnum implements BaseCodeEnum<Integer> {

    DISABLE(0, "不更新"), ENABLE(2, "更新"),
    ;

    private Integer code;

    private String message;

    UpdateStateEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getValue() {
        return code;
    }
}